<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>test</title>
</head>
<link href="../jqueryui/jquery-ui-1.9.2.custom.min.css" rel="stylesheet">
<script type="text/javascript" src="../jquery/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="../jqueryui/jquery-ui-1.9.2.custom.min.js"></script>
<script type="text/javascript" src="../jqueryui/jquery.ui.datepicker-zh-CN.js"></script>
<body>

<script type="text/javascript">
    $(function(){
        $("#dialog").dialog();
    });
</script>

<div id="dialog" title="basic dialog"><p>这是一个采用默认样式的对话框</p></div>
<script>
    $(document).ready(function() {
        $("#datepicker").datepicker({
            dateFormat:'yy-mm-dd',
            showButtonPanel: true,
            changeMonth: true,
            changeYear: true,
            readOnly:true
        });
    });
</script>

<input type="text"id="datepicker" readonly="true"> </input>

</body>
</html>